﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="AdvertiseProduct.aspx.cs" Inherits="BestBuy.SellerViews.AdvertiseProduct" %>
<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <uc:MessagePanel ID="AdvertiseProductMessage" runat="server" />
    </div>
    <table class="table table-bordered">
        <tr>
            <td>
                <asp:Label id="lbTitle" runat="server" Text="Title"></asp:Label><br />                
                <asp:TextBox id="txtTitle" runat="server" Width="80%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqTitle" runat="server" 
                    ControlToValidate="txtTitle" ErrorMessage="Please enter a title">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbCategory" runat="server" Text="Category"></asp:Label> <br />
                <asp:TreeView ID="tvCategories" runat="server" 
                    Font-Size="Medium" ShowCheckBoxes="Leaf">
                </asp:TreeView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbQuantity" runat="server" Text="Quantity"></asp:Label> <br />
                <asp:TextBox ID="txtQuantity"  runat="server" TextMode="Number"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqQuantity" runat="server" 
                    ControlToValidate="txtQuantity" ErrorMessage="Plead enter quantity">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbDescription" runat="server" Text="Description"></asp:Label> <br />
                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" 
                    Width="80%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="reqDescription" runat="server" 
                    ControlToValidate="txtDescription" ErrorMessage="Plead enter description">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbFileUpload" runat="server" Text="Image"></asp:Label><br />
                <asp:Panel ID="pnFileUpload" runat="server">
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <br />
                    <asp:FileUpload ID="FileUpload2" runat="server" />
                    <br />
                    <asp:FileUpload ID="FileUpload3" runat="server" />
                </asp:Panel>
            </td>
        </tr>
    </table>

    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />

    <br />
    <asp:Button ID="btnSubmit" CssClass="btn" runat="server" Text="Submit" onclick="btnSubmit_Click" />
    <br /><br />
        
</asp:Content>
